<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS3 Transform图像缩放案例</title>
</head>
<style type="text/CSS">
    *{
        margin: 0;
        padding: 0;
    }
    .container{
        width: 200px;
        height: 150px;
        background-color: red;
        margin: 100px auto;
        cursor: pointer;
        overflow: hidden;
        
    }
    .container img{
        width: 100%;
        height: 100%;
        opacity: 0.8;
        transition: all 3s;
    }
    .container:hover img{
        opacity: 1;
        transform: scale(2);
    }
   
</style>
<body>
    <div class="container">
        <img src="http://browser9.qhimg.com/bdm/480_296_0/t01bbd94b90e850d1d3.jpg" alt="">
    </div>
</body>
</html>